import { Injectable } from '@angular/core';
import { Observable, Subject } from 'rxjs';

export interface LogoimgSync {
    url?: string;
}

@Injectable()
export class LogoimgSyncService {
    info$: Observable<LogoimgSync>;
    private infoSource = new Subject<LogoimgSync>();

    constructor() {
        this.info$ = this.infoSource.asObservable();
    }

    publishInfo(info: LogoimgSync) {
        this.infoSource.next(info);
    }
}